LC_EVENT_PICKENT Home

LiteCAD generates LC_EVENT_PICKENT event when user clicks by cursor on entity.

The following properties are used for this event type:

Property Description
LC_PROP_EVENT_TYPE Value LC_EVENT_PICKENT
LC_PROP_EVENT_WND Handle to a graphics window
LC_PROP_EVENT_DRW Handle to a drawing
LC_PROP_EVENT_BLOCK Handle to a block which contains the entity
LC_PROP_EVENT_ENTITY Handle to the picked entity.
LC_PROP_EVENT_FLOAT1 Left of selection rectangle.
LC_PROP_EVENT_FLOAT2 Bottom of selection rectangle.
LC_PROP_EVENT_FLOAT3 Right of selection rectangle.
LC_PROP_EVENT_FLOAT4 Top of selection rectangle.
LC_PROP_EVENT_INT1 For pick by rect: 1 - cross mode, 0 - inside mode
LC_PROP_EVENT_INT2 1 - pick by point, 0 - pick by rectangle.

In order to override LiteCAD default processing of this event, within the event procedure call lcEventReturnCode function with non-zero parameter.
By default, LiteCAD will select/unselect the picked entity.